﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.hyrentals.data
{
    public class Message
    {
        public string Id { get; set; }
        public MessageRelatedType RelatedType { get; set; }
        public string RelatedId { get; set; }
        public string SenderId { get; set; }
        public string ReceiverId { get; set; }
        public string Content { get; set; }
        public DateTime SendTime { get; set; }
        public MessageStatus Status { get; set; }
    }

    public enum MessageStatus : byte
    {
        NoRead = 0,
        Read = 1,
        Delete = 2,
    }

    public enum MessageRelatedType : byte
    {
        RentalRequest = 0,
        ContactMe = 1,
    }
}
